package com.fc.campusapplicationsystem.service;

import com.fc.campusapplicationsystem.mapper.UnitMapper;
import com.fc.campusapplicationsystem.model.Unit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 贺哲
 * @2020-02-29 15:34
 */
@Service
public class UnitServiceImpl implements UnitService {
    @Autowired
    UnitMapper unitMapper;

    @Override
    public List<Unit> list(String key) {
        return unitMapper.listUnit(key);
    }

    @Override
    public Integer add(Unit unit) {
        return unitMapper.add(unit);
    }
}
